package jbl.util;

import org.apache.struts2.ServletActionContext;

import jbl.model.Tuser;

public class JblTool {
	
	public static Tuser getTuser(){
		return (Tuser) ServletActionContext.getRequest().getSession().getAttribute("user");
	}
	
	public static String toFlag(String flag){
		if(flag.equals("T")){
			return Message.KQ_ZT;
		}else{
			return Message.GB_ZT;
		}
	}

}
